<template>
  <div id="app">
    <div id="nav">
      <router-link to="/">混入的使用</router-link> |
      <router-link to="/about">About</router-link> |
        <router-link to="/bro">兄弟组件传值</router-link> |
      <router-link to="/cart">$attrs和$listeners和$slot等</router-link> |
         <router-link to="/pay">组件内路由钩子函数</router-link> |
       <router-link to="/myvuex">provide和inject和vuex</router-link> 
    </div>
    <router-view/>
  </div>
</template>
<script>
export default {
  data(){
    return {
      k:"app的数据"
    }
  }
}
</script>
<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
